package com.example.bookmapper.controller;

import com.example.bookmapper.pojo.AdsPriceDistributionCount;
import com.example.bookmapper.service.AdsPriceDistributionCountService;
import com.example.bookmapper.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AdsPriceDistributionCountController {
    @Autowired
    private AdsPriceDistributionCountService adsPriceDistributionCountService;

    @GetMapping("/queryAllAdsPriceDistributionCount")
    public ResponseResult<List<AdsPriceDistributionCount>> queryAllAdsPriceDistributionCount() {
        List<AdsPriceDistributionCount> adsPriceDistributionCounts = adsPriceDistributionCountService.queryAllAdsPriceDistributionCount();
        return new ResponseResult<>("200", "查询成功", adsPriceDistributionCounts);
    }
}

